import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d= scanner.nextDouble();
        int i = 0;
        if (d - (int)d > 0.5){
            i = (int) d+1;
        }else {
            i = (int) d;
        }
        System.out.println(i);

    }
}
